package com.xiejr.api.dto.user;

import com.xiejr.model.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("留言表数据传输对象")
public class LeaveMessageDTO extends BaseEntity.BaseDTO {
    private static final long serialVersionUID = -52422625246558789L;
    /**
     * 主键
     */
    @ApiModelProperty(value = "主键")
    @NotNull(message = "主键不得为空")
    private Integer leaveMessageId;


    /**
     * 留言内容
     */
    @ApiModelProperty(value = "留言内容")
    @NotEmpty(message = "留言内容不得为空")
    private String leaveMessageContent;


    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @NotNull(message = "创建时间不得为空")
    private LocalDateTime createTime;


    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    @NotNull(message = "更新时间不得为空")
    private LocalDateTime updateTime;


    /**
     * 管理员id
     */
    @ApiModelProperty(value = "管理员id")
    @NotNull(message = "管理员id不得为空")
    private Integer adminId;


    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id")
    @NotNull(message = "用户id不得为空")
    private Integer userId;


    /**
     * 主订单id
     */
    @ApiModelProperty(value = "主订单id")
    @NotEmpty(message = "主订单id不得为空")
    private String orderMainId;


    /**
     * 信息状态  0:未读 1:已读
     */
    @ApiModelProperty(value = "信息状态  0:未读 1:已读")
    @NotNull(message = "信息状态  0:未读 1:已读不得为空")
    private Integer messageStatus;


}